package com.yaxin.outsourcing.domain.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;
import com.yaxin.common.annotation.ExcelDictFormat;
import com.yaxin.common.convert.ExcelDictConvert;
import com.yaxin.common.core.domain.BaseEntity;
import com.yaxin.outsourcing.enums.AppStatus;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 临时通行证申请单对象 access_application
 *
 * @author yaxin
 * @date 2025-08-07
 */
@Data
@TableName("access_application")

public class AccessApplicationVO {

    private static final long serialVersionUID=1L;

    /*
     * 申请单ID
     */
    @ExcelProperty(value = "申请单ID")
    private Long id;

    /*
     * 申请单号
     */
    @ExcelProperty(value = "申请单号")
    private String appNo;

    /*
     * 申请单位名称
     */
    @ExcelProperty(value = "申请单位名称")
    private String appUnit;

    /*
     * 外协单位名称
     */
    @ExcelProperty(value = "外协单位名称")
    private String outUnit;

    /*
     * 进厂人数
     */
    @ExcelProperty(value = "进厂人数")
    private Integer entryCount;

    /*
     * 外协负责人账号userName
     */
    @ExcelProperty(value = "外协负责人账号")
    private String outUserName;
    /*
     * 外协负责人
     */
    @ExcelProperty(value = "外协负责人")
    private String outContact;

    /*
     * 外协负责人联系方式
     */
    @ExcelProperty(value = "外协负责人联系方式")
    private String outPhone;

    /*
     * "状态（0-新建，1-审批中，2-已审批，3-已拒绝）"
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
//    @ExcelDictFormat(readConverterExp = "0=新建,1=审批中,2=已审批,3=已拒绝")
    @ExcelDictFormat(dictType = "out_app_status")
    private Integer status;

}
